#!/bin/sh

AUTHOR='Zhang Huangbin (michaelbibby <at> gmail.com)'

#
# PKG_PATH.
#
# Do *NOT* use *OFFICIAL* ftp site.
# Multi mirrors should be separated by colons.
# See also: pkg_add(1).
#
#export PKG_PATH="ftp://ftp.tw.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(machine -a)/"
#export PKG_PATH="/root/0.3beta1/pkgs/$(uname -r)/":"ftp://ftp.jp.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(machine -a)/"

export PKG_PATH="${ROOTDIR}/pkgs/$(uname -r)/"

#
# You can put misc files in this URL, such as source tarball of squirrelmail,
# authldap.schema, whatever you needed while installation.
#
# It *MUST* be a http or ftp URL.
#
#MISC_PATH="$PKG_PATH"
export MISC_PATH="${ROOTDIR}/pkgs/misc/"

export PKG_PATH="${PKG_PATH}:${MISC_PATH}:/usr/ports/packages/$(machine -a)/all/"

# Default password for all LDAP related accounts.
DEFAULT_PASSWD='123456'

# -----------------
# ---- Generic ----
# -----------------
#
# You do *NOT* need to modify them.
#
TIME=$(/bin/date +%Y.%m.%d_%H.%M.%S)

RC_LOCAL='/etc/rc.local'
RC_CONF_LOCAL='/etc/rc.conf.local'

# vmail user.
VMAIL_USER_NAME='vmail'
VMAIL_ADMIN_USER_NAME="${VMAIL_USER_NAME}admin"
VMAIL_USER_UID='2000'
VMAIL_USER_GID='2000'

CONF_MSG="#
# Generated by OMS (OpenBSD Mail Server).
#
# Project: http://code.google.com/p/openbsdonly/wiki/Mail_Server_Solution
# Date: ${TIME}.
# Author: ${AUTHOR}.
#
"

# Tools.
CONFIG_VIA_DIALOG='./tools/config_via_dialog.sh'
CONFIG_FILE='./tools/config'

PORT_DIALOG='/usr/ports/misc/dialog'
